﻿<Window
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:ed="http://schemas.microsoft.com/expression/2010/drawing"
	xmlns:local="clr-namespace:intelliSys.Management.Automation.Test" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:Microsoft_Windows_Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero" mc:Ignorable="d"
	xmlns:System="clr-namespace:System;assembly=mscorlib"
    x:Class="intelliSys.Management.Automation.Test.QuestionMgmt" 
	x:Name="Window"
	Title="试题管理-控制面板"
	Width="900" Height="700" WindowStyle="None" Background="{x:Null}" Foreground="White" AllowsTransparency="True" ResizeMode="CanResizeWithGrip" MinWidth="900" MinHeight="700" WindowStartupLocation="CenterScreen" FontFamily="/intelliSys.Management.Automation.Test;component/Fonts/#Segoe UI">
    <Window.Resources>
        <Storyboard x:Key="Expand" >
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Height)" >
                <EasingDoubleKeyFrame KeyTime="0" Value="40"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="46">
                    <EasingDoubleKeyFrame.EasingFunction>
                        <CircleEase EasingMode="EaseInOut"/>
                    </EasingDoubleKeyFrame.EasingFunction>
                </EasingDoubleKeyFrame>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
        <Storyboard x:Key="Shrink">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Height)" >
                <EasingDoubleKeyFrame KeyTime="0" Value="250"/>
                <EasingDoubleKeyFrame KeyTime="0:0:0.25" Value="40">
                    <EasingDoubleKeyFrame.EasingFunction>
                        <CircleEase EasingMode="EaseInOut"/>
                    </EasingDoubleKeyFrame.EasingFunction>
                </EasingDoubleKeyFrame>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
        <Storyboard x:Key="darken">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="darkener">
                <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="0.8"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>

    </Window.Resources>
    <Border CornerRadius="10" Margin="0" BorderThickness="0" Background="#F20E1620">
        <Border.BorderBrush>
            <LinearGradientBrush EndPoint="1.268,1.284" StartPoint="0.71,0.684">
                <GradientStop Color="#FD000000"/>
                <GradientStop Color="White" Offset="0.548"/>
            </LinearGradientBrush>
        </Border.BorderBrush>


        <Grid RenderTransformOrigin="0.5,0.5">


            <Grid x:Name="LayoutRoot" Margin="0" Visibility="Visible" RenderTransformOrigin="0.5,0.5">
            	<Grid.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform ScaleX="1" ScaleY="1"/>
            			<SkewTransform/>
            			<RotateTransform/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</Grid.RenderTransform>

                <Rectangle x:Name="rectangle" Margin="-395.879,-119.518,-176.825,291.214" RenderTransformOrigin="0.5,0.5">
                    <Rectangle.Fill>
                        <LinearGradientBrush EndPoint="0.989,0.767" StartPoint="0.279,0.191">
                            <GradientStop Color="#00000000" Offset="0.63"/>
                            <GradientStop Color="#33FFFFFF"/>
                        </LinearGradientBrush>
                    </Rectangle.Fill>
                    <Rectangle.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform/>
                            <SkewTransform/>
                            <RotateTransform Angle="132.554"/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </Rectangle.RenderTransform>
                </Rectangle>

                <ed:RegularPolygon InnerRadius="1" PointCount="3" Stretch="Fill" RenderTransformOrigin="0.5,0.5" Margin="0,123.51,8.169,-0.947" Opacity="0.99" HorizontalAlignment="Right" Width="186.861">
                    <ed:RegularPolygon.Fill>
                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                            <GradientStop Color="#33000000"/>
                            <GradientStop Color="#19FFFFFF" Offset="1"/>
                        </LinearGradientBrush>
                    </ed:RegularPolygon.Fill>
                    <ed:RegularPolygon.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform ScaleY="1" ScaleX="-1"/>
                            <SkewTransform AngleY="0" AngleX="-14"/>
                            <RotateTransform Angle="-359.851"/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </ed:RegularPolygon.RenderTransform>
                </ed:RegularPolygon>

                <Border BorderThickness="1,1,0,0" HorizontalAlignment="Left" Height="93.167" VerticalAlignment="Top" Width="213" CornerRadius="10,0,0,0">
                    <Border.Background>
                        <LinearGradientBrush EndPoint="0.429,0.214" StartPoint="0.693,1.16">
                            <GradientStop Color="{DynamicResource LightBlue}" Offset="0"/>
                            <GradientStop Offset="0.297" Color="#FF1B232B"/>
                        </LinearGradientBrush>
                    </Border.Background>
                    <Border.BorderBrush>
                        <SolidColorBrush Color="{DynamicResource BorderBrush}"/>
                    </Border.BorderBrush>
                    <Grid>
                        <Image Source="logo.png" Stretch="Fill" Height="50" VerticalAlignment="Top" HorizontalAlignment="Left" Width="50" d:LayoutOverrides="HorizontalAlignment" Margin="6.667,6.667,0,0"/>
                        <TextBlock Margin="70.665,36,11.668,0" TextWrapping="Wrap" Foreground="White" FontSize="21.333" TextAlignment="Right"><Run Text="试题管理"/><LineBreak/><Run FontSize="13.333" Language="zh-cn" Text="控制面板"/></TextBlock>
                    </Grid>
                </Border>

                <ed:Arc ArcThickness="151" ArcThicknessUnit="Pixel" EndAngle="360" Height="189.9" Margin="30.833,-100.733,412.667,0" Stretch="None" StartAngle="0" VerticalAlignment="Top">
                    <ed:Arc.Fill>
                        <RadialGradientBrush>
                            <GradientStop Color="#0C3D434B" Offset="1"/>
                            <GradientStop Color="White"/>
                        </RadialGradientBrush>
                    </ed:Arc.Fill>
                </ed:Arc>
                <TabControl x:Name="tabCtrl" Margin="0,93.167,24.897,52" TabStripPlacement="Left" d:LayoutOverrides="VerticalAlignment" OpacityMask="Black" Opacity="0.8">
                    <TabControl.Background>
                        <SolidColorBrush Color="{DynamicResource DarkBlue}"/>
                    </TabControl.Background>
                    <TabControl.BorderBrush>
                        <SolidColorBrush Color="{DynamicResource MouseOverClr}"/>
                    </TabControl.BorderBrush>
                    <TabItem Margin="0" Width="210" Height="60" Style="{DynamicResource TabItemStyle1}" Foreground="White" BorderThickness="5" Background="#E5081425" HorizontalAlignment="Left" VerticalAlignment="Top">
                        <TabItem.Header>
                            <Grid Height="47.513" Width="108" HorizontalAlignment="Left" VerticalAlignment="Top">
                                <TextBlock  RenderTransformOrigin="0.5,0.5" FontSize="24" Margin="-40,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Top"><Run Text="基础"/><LineBreak/><Run FontSize="12" Language="zh-cn" Text="包含必须填写的信息"/></TextBlock>
                            </Grid>
                        </TabItem.Header>
                        <TabItem.BorderBrush>
                            <SolidColorBrush Color="{DynamicResource BorderBrush}"/>
                        </TabItem.BorderBrush>
                        <Grid Margin="8,0,0,0">
                            <GroupBox x:Name="groupBox1" Header="基础" Foreground="White" Margin="0" d:LayoutOverrides="Width" BorderThickness="0.5">
                                <GroupBox.BorderBrush>
                                    <SolidColorBrush Color="{DynamicResource BorderBrush}"/>
                                </GroupBox.BorderBrush>
                                <StackPanel Margin="0">
                                    <Border x:Name="border1" Margin="1.5,0,0,0" BorderThickness="0.5" BorderBrush="White" CornerRadius="3" >
                                        <Grid Margin="0" d:LayoutOverrides="Width" GotFocus="Grid_GotFocus" LostFocus="Grid_LostFocus" Height="40">
                                            <TextBlock x:Name="BodyTxtBlk5" TextWrapping="Wrap" Text="题干" Width="33" FontSize="13.333" Margin="8,11,0,8.999" HorizontalAlignment="Left"/>
                                            <local:AdvancedTextBox IsReadOnly="True" Text="{Binding Summary,Mode=OneTime}"   x:Name="BdyText" Margin="67,8,124.353,8" TextWrapping="Wrap" Background="{x:Null}" BorderThickness="1" BorderBrush="#FFFF00C7" Foreground="White" Padding="1,1,66,1" ScrollViewer.CanContentScroll="True" UseLayoutRounding="True" Grid.IsSharedSizeScope="True" HorizontalScrollBarVisibility="Auto" SpellCheck.IsEnabled="True" VerticalScrollBarVisibility="Auto" Style="{DynamicResource TextBoxStyle}" />
                                            <Button x:Name="PasteOpenXMLButton" Click="StartWordInterop" Content="开启Word Interop" Width="101.853" Template="{DynamicResource ButtonControlTemplate1}" Background="{x:Null}" Foreground="White" HorizontalAlignment="Right" Height="22" VerticalAlignment="Top" Margin="0,9.328,8.103,0" BorderBrush="{x:Null}"/>
                                            <TextBlock HorizontalAlignment="Right" Margin="0,60.996,8.103,8" TextWrapping="Wrap" Width="92" FontSize="9.333"><Run Language="zh-cn" Text="智能标签是Microsoft OpenXML技术的一部分。该标签可以保持排版的所有特性，但会造成性能损耗。"/><LineBreak/><Run Language="zh-cn" Text="若您的剪切板中已经包含智能标签，该智能标签将被直接保存。"/><LineBreak/><Run Language="zh-cn" Text="若您输入PlainText，我们将为您生成简单的智能标签。"/><LineBreak/><Run FontStyle="Italic" Language="zh-cn" Text="您必须使用本程序配备的Microsoft Word®加载项才能启用智能标签。"/></TextBlock>
                                        </Grid>
                                    </Border>
                                    <Border Margin="1.5,10,0,0" BorderThickness="0.5" BorderBrush="White" CornerRadius="3">
                                        <Grid Margin="0" d:LayoutOverrides="Width" Height="40">
                                            <TextBlock x:Name="BodyTxtBlk6" TextWrapping="Wrap" Width="54.996" FontSize="13.333" Margin="8.004,11.833,0,11.833" HorizontalAlignment="Left"><Run Language="zh-cn" Text="难度预设"/></TextBlock>
                                            <TextBox MouseEnter="BdyText3_MouseEnter"  x:Name="BdyText3" Margin="67,8,28,8" TextWrapping="Wrap" Background="{x:Null}" BorderThickness="1" BorderBrush="#FFFF00C7" Foreground="White" Padding="1,1,66,1" ScrollViewer.CanContentScroll="True" UseLayoutRounding="True" Grid.IsSharedSizeScope="True" HorizontalScrollBarVisibility="Auto" SpellCheck.IsEnabled="True" d:LayoutOverrides="Width" VerticalScrollBarVisibility="Auto" Text="{Binding StartDifficulty,Mode=TwoWay}" Style="{DynamicResource TextBoxStyle}"/>
                                        </Grid>
                                    </Border>
                                    <Border Margin="1.5,10,0,0" BorderThickness="0.5" BorderBrush="White" CornerRadius="3">
                                        <Grid Margin="0" d:LayoutOverrides="Width" Height="40">
                                            <TextBlock x:Name="BodyTxtBlk11" TextWrapping="Wrap" Width="54.996" FontSize="13.333" Height="16.334" VerticalAlignment="Center" Margin="8.004,8,0,0" HorizontalAlignment="Left"><Run Language="zh-cn" Text="题型"/></TextBlock>
                                            <ComboBox x:Name="QuestionType" HorizontalAlignment="Left" Margin="67,8,0,8" Width="73" IsEditable="True" Background="White" Foreground="Black" SelectedValue="{Binding QuestionType,Mode=TwoWay}">
                                                <System:String>选择题</System:String>
                                                <System:String>填空题</System:String>
                                                <System:String>判断题</System:String>
                                                <System:String>简答题</System:String>
                                                <System:String>综合体</System:String>
                                                <System:String>其他题</System:String>
                                            </ComboBox>
                                        </Grid>
                                    </Border>
                                    <Border Margin="1.5,10,0,0" BorderThickness="0.5" BorderBrush="White" CornerRadius="3">
                                        <Grid Height="40"  Margin="0" >
                                            <TextBlock x:Name="BodyTxtBlk7" TextWrapping="Wrap" Width="60" FontSize="13.333" HorizontalAlignment="Left" Margin="8,8,0,0" Height="29.334" VerticalAlignment="Top" d:LayoutOverrides="VerticalAlignment"><Run Language="zh-cn" Text="错误答案"/></TextBlock>
                                            <Button x:Name="WrongAnswer_Add" Click="WrongAnswer_Add_Click" Content="增加" Margin="92.897,49.328,0,0" Template="{DynamicResource ButtonControlTemplate1}" Background="Black" Foreground="White" HorizontalAlignment="Left" Width="71" Height="22" VerticalAlignment="Top" d:LayoutOverrides="Height"/>
                                            <Button x:Name="WrongAnswer_Delete" Click="WrongAnswer_Delete_Click" Content="移除" Width="71" Template="{DynamicResource ButtonControlTemplate1}" Background="Black" Foreground="White" HorizontalAlignment="Right" Margin="0,49.328,94,0" Height="22" VerticalAlignment="Top" d:LayoutOverrides="Height"/>
                                            <ListBox Margin="8,74.328,8.103,20.666" Foreground="White" d:LayoutOverrides="VerticalAlignment" ItemsSource="{Binding ErrorAnswers}" x:Name="WrongAnswerList" Background="{x:Null}" BorderThickness="0.5"   >
                                                <ListBox.BorderBrush>
                                                    <SolidColorBrush Color="{DynamicResource BorderBrush}"/>
                                                </ListBox.BorderBrush>
                                            </ListBox>
                                            <Button Click="Button_Click" Content="展开" Width="71" Template="{DynamicResource ButtonControlTemplate1}" Background="Black" Foreground="White" HorizontalAlignment="Right" Height="22" VerticalAlignment="Top" Margin="0,6.328,8.103,0"/>
                                        </Grid>
                                    </Border>
                                    <Border Margin="1.5,10,0,0" BorderThickness="0.5" BorderBrush="White" CornerRadius="3">
                                        <Grid Margin="0" Height="40">
                                            <TextBlock x:Name="BodyTxtBlk8" TextWrapping="Wrap" Width="60" FontSize="13.333" HorizontalAlignment="Left" Margin="8,8,0,0" Height="29.334" VerticalAlignment="Top" d:LayoutOverrides="VerticalAlignment"><Run Language="zh-cn" Text="参考答案"/></TextBlock>
                                            <Button x:Name="TrueAnswer_Add" Click="TrueAnswer_Add_Click" Content="增加" Margin="92.897,49.328,0,0" Template="{DynamicResource ButtonControlTemplate1}" Background="Black" Foreground="White" HorizontalAlignment="Left" Width="71" Height="22" VerticalAlignment="Top" d:LayoutOverrides="Height"/>
                                            <Button x:Name="TrueAnswer_Delete" Click="TrueAnswer_Delete_Click" Content="移除" Width="71" Template="{DynamicResource ButtonControlTemplate1}" Background="Black" Foreground="White" HorizontalAlignment="Right" Margin="0,49.328,94,0" Height="22" VerticalAlignment="Top" d:LayoutOverrides="Height"/>
                                            <ListBox x:Name="CorrectAnswerList" ItemsSource="{Binding TrueAnswers}" Margin="8,74.328,8.103,20.666" Foreground="White" d:LayoutOverrides="VerticalAlignment" Background="{x:Null}" BorderThickness="0.5" >
                                                <ListBox.BorderBrush>
                                                    <SolidColorBrush Color="{DynamicResource BorderBrush}"/>
                                                </ListBox.BorderBrush>
                                            </ListBox>
                                            <Button Click="Button_Click" Content="展开" Width="71" Template="{DynamicResource ButtonControlTemplate1}" Background="Black" Foreground="White" HorizontalAlignment="Right" Height="22" VerticalAlignment="Top" Margin="0,6.328,8.103,0" />
                                        </Grid>
                                    </Border>
                                    <Border Margin="1.5,10,0,0" BorderThickness="0.5" BorderBrush="White" CornerRadius="3">
                                        <Grid Margin="0" Height="40">
                                            <TextBlock x:Name="BodyTxtBlk9" TextWrapping="Wrap" Width="75" FontSize="13.333" HorizontalAlignment="Left" Margin="8,8,0,0" Height="29.334" VerticalAlignment="Top"><Run Language="zh-cn" Text="考察知识点"/></TextBlock>
                                            <Button Click="Button_Click_KnowledgePointAdd" Content="增加" Margin="92.897,49.328,0,0" Template="{DynamicResource ButtonControlTemplate1}" Background="Black" Foreground="White" HorizontalAlignment="Left" Width="71" Height="22" VerticalAlignment="Top" d:LayoutOverrides="Height"/>
                                            <Button Click="Button_Click_KnowledgePointRemove" Content="移除" Width="71" Template="{DynamicResource ButtonControlTemplate1}" Background="Black" Foreground="White" HorizontalAlignment="Right" Margin="0,49.328,94,0" Height="22" VerticalAlignment="Top" d:LayoutOverrides="Height"/>
                                            <ListBox x:Name="KnowledgePointsList" ItemsSource="{Binding KnowledgePoints}"  Margin="8,74.328,8.103,20.666" Foreground="Black" d:LayoutOverrides="VerticalAlignment" ItemTemplate="{DynamicResource ListTemplate}" Background="{x:Null}" BorderThickness="0.5">
                                                <ListBox.BorderBrush>
                                                    <SolidColorBrush Color="{DynamicResource BorderBrush}"/>
                                                </ListBox.BorderBrush>
                                            </ListBox>
                                            <Button Click="Button_Click" Content="展开" Width="71" Template="{DynamicResource ButtonControlTemplate1}" Background="Black" Foreground="White" HorizontalAlignment="Right" Height="22" VerticalAlignment="Top" Margin="0,6.328,8.103,0"/>
                                        </Grid>
                                    </Border>
                                    <Border Margin="1.5,10,4.603,0" BorderThickness="0.5" BorderBrush="White" CornerRadius="3">
                                        <Grid Margin="0" d:LayoutOverrides="Width"  Height="40">
                                            <TextBlock  TextWrapping="Wrap" Width="54.996" FontSize="13.333" Margin="8.004,13.833,0,9.833" HorizontalAlignment="Left"><Run Language="zh-cn" Text="启用"/></TextBlock>
                                            <CheckBox x:Name="QuestionEnabled" Margin="67,15,0,9.833"  IsChecked="{Binding IsEnabled, Mode=TwoWay}" HorizontalAlignment="Left" Width="14.417" IsEnabled="False"/>
                                        </Grid>
                                    </Border>
                                </StackPanel>
                            </GroupBox>
                        </Grid>
                    </TabItem>
                    <TabItem Margin="0" Width="210" Height="60" Style="{DynamicResource TabItemStyle1}" Foreground="White" BorderThickness="5" Background="#E5081425" HorizontalAlignment="Left" VerticalAlignment="Top">
                        <TabItem.Header>
                            <Grid Height="47.513" Width="108" HorizontalAlignment="Left" VerticalAlignment="Top">
                                <TextBlock RenderTransformOrigin="0.5,0.5" FontSize="24" Margin="-40,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" FontFamily="Segoe UI Light"><Run Language="zh-cn" Text="高级"/><LineBreak/><Run FontSize="12" Language="zh-cn" Text="包含选择填写的信息"/></TextBlock>
                            </Grid>
                        </TabItem.Header>
                        <TabItem.BorderBrush>
                            <SolidColorBrush Color="{DynamicResource BorderBrush}"/>
                        </TabItem.BorderBrush>
                        <Grid Margin="8,0,0,0">
                            <GroupBox x:Name="groupBox2" Header="高级" Foreground="White" Margin="0,0,4.603,0" d:LayoutOverrides="Width" BorderThickness="0.5">
                                <GroupBox.BorderBrush>
                                    <SolidColorBrush Color="{DynamicResource BorderBrush}"/>
                                </GroupBox.BorderBrush>
                                <StackPanel Margin="0">
                                    <Border x:Name="border2" Margin="1.5,0,0,0" BorderThickness="0.5" BorderBrush="White" CornerRadius="3">
                                        <Grid Margin="0" d:LayoutOverrides="Width" Height="40">
                                            <TextBlock x:Name="BodyTxtBlk1" TextWrapping="Wrap" Width="44" FontSize="13.333" Margin="8,12,0,4" HorizontalAlignment="Left"><Run Language="zh-cn" Text="可能性"/></TextBlock>
                                            <TextBox Text="{Binding Possibility,Mode=TwoWay}" x:Name="BdyText1" Margin="67,8,28,8" TextWrapping="Wrap" Background="{x:Null}" BorderThickness="1" BorderBrush="#FFFF00C7" Foreground="White" Padding="1,1,66,1" ScrollViewer.CanContentScroll="True" UseLayoutRounding="True" Grid.IsSharedSizeScope="True" HorizontalScrollBarVisibility="Auto" SpellCheck.IsEnabled="True" d:LayoutOverrides="Width" VerticalScrollBarVisibility="Auto" Style="{DynamicResource TextBoxStyle}" IsReadOnly="True" />
                                        </Grid>
                                    </Border>
                                    <Border  Margin="1.5,10,0,0" BorderThickness="0.5" BorderBrush="White" CornerRadius="3">
                                        <Grid Margin="0" d:LayoutOverrides="Width" Height="40">
                                            <TextBlock  TextWrapping="Wrap" Width="55" FontSize="13.333" Margin="8,12,0,4" HorizontalAlignment="Left"><Run Language="zh-cn" Text="创建日期"/></TextBlock>
                                            <TextBlock  Text="{Binding CreateDate,Mode=OneTime}"  Margin="0,8,27.75,8" TextWrapping="Wrap" Background="{x:Null}"  Foreground="White" Padding="1,1,66,1"  UseLayoutRounding="True" Grid.IsSharedSizeScope="True" HorizontalAlignment="Right" Width="530" />
                                        </Grid>
                                    </Border>
                                    <Border  Margin="1.5,10,0,0" BorderThickness="0.5" BorderBrush="White" CornerRadius="3">
                                        <Grid Margin="0" d:LayoutOverrides="Width" Height="40">
                                            <TextBlock  TextWrapping="Wrap" Width="83" FontSize="13.333" Margin="8,12,0,4" HorizontalAlignment="Left"><Run Language="zh-cn" Text="最后使用"/></TextBlock>
                                            <TextBlock Text="{Binding LastUsed,Mode=OneTime}"  Margin="0,8,27.75,8" TextWrapping="Wrap" Background="{x:Null}" Foreground="White" Padding="1,1,66,1" ScrollViewer.CanContentScroll="True" UseLayoutRounding="True" Grid.IsSharedSizeScope="True"   HorizontalAlignment="Right" Width="529" />
                                        </Grid>
                                    </Border>
                                    <Border Margin="1.5,10,0,0" BorderThickness="0.5" BorderBrush="White" CornerRadius="3">
                                        <Grid Margin="0" d:LayoutOverrides="Width"  Height="40">
                                            <TextBlock x:Name="BodyTxtBlk2" TextWrapping="Wrap" Width="54.996" FontSize="13.333" Margin="8.004,13.833,0,9.833" HorizontalAlignment="Left"><Run Language="zh-cn" Text="出题频率"/></TextBlock>
                                            <TextBlock Text="{Binding UseFrequency,Mode=TwoWay}" x:Name="BdyText4" Margin="69,9,26,9" TextWrapping="Wrap" Background="{x:Null}" Foreground="White" Padding="1,1,66,1" ScrollViewer.CanContentScroll="True" UseLayoutRounding="True" Grid.IsSharedSizeScope="True"  d:LayoutOverrides="Width"/>
                                        </Grid>
                                    </Border>
                                    <Border Margin="1.5,10,-4.603,0" BorderThickness="0.5" BorderBrush="White" CornerRadius="3">
                                    	<Grid Margin="0" Height="40">
                                    		<TextBlock x:Name="BodyTxtBlk3" TextWrapping="Wrap" Width="60" FontSize="13.333" HorizontalAlignment="Left" Margin="8,8,0,0" Height="29.334" VerticalAlignment="Top" d:LayoutOverrides="VerticalAlignment"><Run Language="zh-cn" Text="历史消息"/></TextBlock>
                                    		<Button x:Name="HistoryList_Add" Click="HistoryList_Add_Click" Content="增加" Margin="92.897,49.328,0,0" Template="{DynamicResource ButtonControlTemplate1}" Background="Black" Foreground="White" HorizontalAlignment="Left" Width="71" Height="22" VerticalAlignment="Top" d:LayoutOverrides="Height"/>
                                    		<Button x:Name="HistoryList_Remove" Click="HistoryList_Remove_Click" Content="移除" Width="71" Template="{DynamicResource ButtonControlTemplate1}" Background="Black" Foreground="White" HorizontalAlignment="Right" Margin="0,49.328,94,0" Height="22" VerticalAlignment="Top" d:LayoutOverrides="Height" IsEnabled="False"/>
                                    		<ListBox x:Name="HistoryList" ItemsSource="{Binding HistoryMessages}" Margin="8,74.328,8.103,20.666" Foreground="White" d:LayoutOverrides="VerticalAlignment" Background="{x:Null}" BorderThickness="0.5" >
                                    			<ListBox.BorderBrush>
                                    				<SolidColorBrush Color="{DynamicResource BorderBrush}"/>
                                    			</ListBox.BorderBrush>
                                    		</ListBox>
                                    		<Button Click="Button_Click" Content="展开" Width="71" Template="{DynamicResource ButtonControlTemplate1}" Background="Black" Foreground="White" HorizontalAlignment="Right" Height="22" VerticalAlignment="Top" Margin="0,6.328,8.103,0" />
                                    	</Grid>
                                    </Border>
                                </StackPanel>
                            </GroupBox>
                        </Grid>
                    </TabItem>
                    <TabItem IsEnabled="{Binding IsOpenXMLEnabled}" x:Name="preview" Margin="0" Width="210" Height="60" Style="{DynamicResource TabItemStyle1}" BorderThickness="5" Background="#E5FFFFFF" Foreground="White">
                        <TabItem.Header>
                            <Grid Height="47.513" Width="208" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="0" Background="#00000000">
                                <TextBlock RenderTransformOrigin="0.5,0.5" FontSize="24" HorizontalAlignment="Left" VerticalAlignment="Top" Width="106.667" Margin="12.333,-0.001,0,0"><Run Language="zh-cn" Text="预览"/><LineBreak/><Run FontSize="12" Language="zh-cn" Text="查看实时预览"/></TextBlock>
                            </Grid>
                        </TabItem.Header>
                        <TabItem.BorderBrush>
                            <SolidColorBrush Color="{DynamicResource BorderBrush}"/>
                        </TabItem.BorderBrush>
                        <Grid Margin="8,0,0,0">
                            <GroupBox x:Name="groupBox3" Header="打印预览" Foreground="White" Margin="0,0,4.603,0" d:LayoutOverrides="Width">
                                <GroupBox.BorderBrush>
                                    <SolidColorBrush Color="{DynamicResource BorderBrush}"/>
                                </GroupBox.BorderBrush>
                                <Grid Margin="0" d:LayoutOverrides="Width">
                                    <local:DocumentViewer x:Name="DocViewer" Margin="0"/>
                                </Grid>
                            </GroupBox>
                        </Grid>
                    </TabItem>
                    <TabItem Margin="0" Width="210.25" Height="60" Style="{DynamicResource TabItemStyle1}" Foreground="White" BorderThickness="5" Background="#E5081425" HorizontalAlignment="Left" VerticalAlignment="Top">
                        <TabItem.Header>
                            <Grid Height="47.513" Width="112" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="13,0,0,0">
                                <TextBlock RenderTransformOrigin="0.5,0.5" FontSize="24" HorizontalAlignment="Left" VerticalAlignment="Top" Width="98.667" Margin="-44,0,0,0" d:LayoutOverrides="HorizontalAlignment"><Run Language="zh-cn" Text="选项"/><LineBreak/><Run FontSize="12" Language="zh-cn" Text="显示喜好和设置"/></TextBlock>
                            </Grid>
                        </TabItem.Header>
                        <TabItem.BorderBrush>
                            <SolidColorBrush Color="{DynamicResource BorderBrush}"/>
                        </TabItem.BorderBrush>
                        <Grid Margin="8,0,0,0">
                        </Grid>
                    </TabItem>
                </TabControl>
                <Button x:Name="Comfirm"  Click="Comfirm_Click" Content="确定并退出" HorizontalAlignment="Right" Height="32" Margin="0,0,140.897,7" VerticalAlignment="Bottom" Width="116" Template="{DynamicResource ButtonControlTemplate1}" Foreground="White"/>
                <Button x:Name="Cancel" Click="Cancel_Click" Content="取消" HorizontalAlignment="Right" Height="32" Margin="0,0,24.897,7" VerticalAlignment="Bottom" Width="116" Template="{DynamicResource ButtonControlTemplate1}" Foreground="White"/>
                <Border BorderThickness="1" CornerRadius="0,0,0,10" Opacity="0.9" Background="#FF0A1525" Height="52.334" VerticalAlignment="Bottom" HorizontalAlignment="Left" Width="213">
                    <Border.BorderBrush>
                        <SolidColorBrush Color="{DynamicResource MouseOverClr}"/>
                    </Border.BorderBrush>
                </Border>
                <Border HorizontalAlignment="Left" Height="257" Margin="0,0,0,52" VerticalAlignment="Bottom" Width="212.667">
                    <Border.BorderBrush>
                        <SolidColorBrush Color="{DynamicResource BorderBrush}"/>
                    </Border.BorderBrush>
                    <ListBox   MouseDoubleClick="CheckList_MouseDoubleClick" Margin="0,8"  BorderThickness="0" Background="{x:Null}" BorderBrush="{x:Null}" Foreground="White" x:Name="CheckList" OpacityMask="Black" ItemContainerStyle="{DynamicResource ListBoxItemStyle1}" ItemTemplate="{DynamicResource CheckListTemplate}">
                    </ListBox>
                </Border>

            </Grid>
            <ToggleButton Click="OnSiteHelp_Click" x:Name="OnSiteIndicator" VerticalAlignment="Top" Width="210.205" HorizontalAlignment="Left" Margin="1.958,334.669,0,305.331" BorderBrush="{x:Null}" Foreground="White" BorderThickness="0"  Background="{x:Null}" Style="{DynamicResource ToggleButtonStyle1}" Opacity="0.9" Height="60">
                <Grid Height="47.513" Width="98.666">
                    <TextBlock RenderTransformOrigin="0.5,0.5" FontSize="24" HorizontalAlignment="Left" VerticalAlignment="Top" Width="98.666"><Run Language="zh-cn" Text="帮助"/><LineBreak/></TextBlock>
                    <TextBlock x:Name="HelpIndicator" FontSize="12" RenderTransformOrigin="0.5,0.5" HorizontalAlignment="Left" VerticalAlignment="Top" Width="98.666" Height="18.179" Margin="0,29.333,0,0"><Run Language="zh-cn" Text="已关闭OnSite帮助"/></TextBlock>
                </Grid>
            </ToggleButton>
            <Grid x:Name="Visual_Effects" Margin="5" Visibility="Collapsed">
                <Rectangle x:Name="darkener" Fill="#FD000000" Margin="0"/>
                <TextBlock x:Name="progressing" Margin="311.5,240.5,312.5,215.5" TextWrapping="Wrap" RenderTransformOrigin="0.5,0.5" Foreground="White" FontSize="32"><TextBlock.RenderTransform>
        					<TransformGroup>
        						<ScaleTransform/>
        						<SkewTransform/>
        						<RotateTransform/>
        						<TranslateTransform/>
        					</TransformGroup>
        				</TextBlock.RenderTransform><Run Language="zh-cn" Text="Progressing..."/></TextBlock>
                <ProgressBar Margin="148,305,115,318" Style="{DynamicResource PerformanceProgressBar}" Background="{x:Null}" BorderBrush="{x:Null}" IsIndeterminate="True">
                    <ProgressBar.Foreground>
                        <SolidColorBrush Color="{DynamicResource MouseOverClr}"/>
                    </ProgressBar.Foreground>
                </ProgressBar>
            </Grid>
            <Button x:Name="ComfirmContinueButton" Click="ComfirmAndContinue_Click" Content="确定并继续" HorizontalAlignment="Right" Height="32" Margin="0,0,256.563,6.332" VerticalAlignment="Bottom" Width="116" Template="{DynamicResource ButtonControlTemplate1}" Foreground="White" BorderThickness="0"/>
        </Grid>
    </Border>
</Window>